import { createRouter,createWebHashHistory, RouteRecordRaw } from "vue-router";

// views
import IndexPage from '../views/index/index.vue';
import LoginPage from '../views/login/login.vue';
import QrcodePage from '../views/qrcode/index.vue';
import MyPage from '../views/user/my.vue';
// import Helloworld from '../components/HelloWorld.vue';

const routes: Array<RouteRecordRaw> = [
  {
    path: '/',
    name: 'Index',
    component: IndexPage,
  },
  {
    path: '/login',
    name: 'Login',
    component: LoginPage
  },
  {
    path: '/qrcode',
    name: 'Qrcode',
    component: QrcodePage
  },
  {
    path: '/my',
    name: 'My',
    component: MyPage
  }
];

export const router = createRouter({
  routes: routes,
  history: createWebHashHistory(),
})
